// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Monitor",
    products: [
        .library(name: "Monitor", targets: ["Monitor"]),
    ],
    dependencies: [
        .package(name: "Reachability", url: "https://gitee.com/jiucaishuo/Reachability.swift.git", from: "5.0.0"),
        .package(name: "AppCenter", url: "https://gitee.com/jiucaishuo/appcenter-sdk-apple.git", .branch("jcs")),
        .package(name: "LogMan", url: "https://gitee.com/jiucaishuo/log-man.git", from: "1.3.0"),
        .package(name:"Standard", url: "https://gitee.com/jiucaishuo/Standard.git", from: "1.4.2"),
    ],
    targets: [
        .target(
            name: "Monitor",
            dependencies: [
                .product(name: "Reachability", package: "Reachability"),
                .product(name: "AppCenterAnalytics", package: "AppCenter"),
                .product(name: "AppCenterCrashes", package: "AppCenter"),
                .product(name: "LogMan", package: "LogMan"),
                .product(name: "Standard", package: "Standard"),
            ],
            path: "Sources"
        ),
        .testTarget(name: "MonitorTests", dependencies: ["Monitor"]),
    ]
)
